<html>
 <head>
  <meta charset="UTF-8">
 </head>
 <body>
  <h1 data-lake-id="lVRaC" id="lVRaC"><span data-lake-id="u1c10a3ba" id="u1c10a3ba">面试者背景</span></h1>
  <p data-lake-id="ua6a387a6" id="ua6a387a6"><br></p>
  <blockquote data-lake-id="u9afe6761" id="u9afe6761" class="lake-alert lake-alert-warning">
   <p data-lake-id="ue066a78f" id="ue066a78f"><span data-lake-id="u2c475500" id="u2c475500">22年毕业，培训了Java 2个月，双非二本，非科班</span></p>
   <p data-lake-id="u1ed6fe24" id="u1ed6fe24"><span data-lake-id="u01516d12" id="u01516d12">怎么理解面向对象？什么是多态？</span><span data-lake-id="ue1562a98" id="ue1562a98">Java</span><span data-lake-id="uc4122791" id="uc4122791">是值传递还是引用传递？值传递</span></p>
   <p data-lake-id="u5a559d4c" id="u5a559d4c"><span data-lake-id="u4d11defd" id="u4d11defd">AQS</span><span data-lake-id="u496e0bb7" id="u496e0bb7">介绍一下？</span><span data-lake-id="ue3d8be2f" id="ue3d8be2f">state</span><span data-lake-id="u9b205bec" id="u9b205bec">是什么类型，</span><span data-lake-id="ucb116670" id="ucb116670">state</span><span data-lake-id="u02a470ba" id="u02a470ba">的修改是怎么改的？</span><span data-lake-id="uf35d0821" id="uf35d0821">state=1</span><span data-lake-id="u78d84391" id="u78d84391">表示什么？</span></p>
   <p data-lake-id="ua6d4733e" id="ua6d4733e"><span data-lake-id="u237df313" id="u237df313">AQS</span><span data-lake-id="udfc402fd" id="udfc402fd">有哪些具体实现？</span><span data-lake-id="u6d5ec8e3" id="u6d5ec8e3">reentrantLock</span><span data-lake-id="u5293c0b7" id="u5293c0b7">和</span><span data-lake-id="uaa4cdad6" id="uaa4cdad6">synchronized</span><span data-lake-id="ue56abdf4" id="ue56abdf4">区别是啥？</span></p>
   <p data-lake-id="uee752b2c" id="uee752b2c"><span data-lake-id="u45bc6396" id="u45bc6396">公平锁和非公平锁区别是啥？公平锁的缺点？</span><span data-lake-id="uf71bfe22" id="uf71bfe22">reentrantLock</span><span data-lake-id="u700701c3" id="u700701c3">是如何实现公平锁和非公平锁的？</span></p>
   <p data-lake-id="u14c3f370" id="u14c3f370"><span data-lake-id="u31a583a1" id="u31a583a1">你觉得用</span><span data-lake-id="u7676fb07" id="u7676fb07">synchronized</span><span data-lake-id="u1fb6c1bf" id="u1fb6c1bf">和</span><span data-lake-id="ud7cf3a85" id="ud7cf3a85">reentrant</span><span data-lake-id="u4044f9d9" id="u4044f9d9">哪个好？</span><span data-lake-id="u6598e176" id="u6598e176">synchronized</span><span data-lake-id="uec8c9ba4" id="uec8c9ba4">锁的是什么？锁对象和锁类有区别吗？</span></p>
   <p data-lake-id="u904beb99" id="u904beb99"><span data-lake-id="u45f0e2db" id="u45f0e2db">同一个类中有两个</span><span data-lake-id="ue21e16b3" id="ue21e16b3">synchronized</span><span data-lake-id="ubc6d78f5" id="ubc6d78f5">方法，能被两个线程同时执行吗？同一个线程可以吗？重入怎么判断？为啥要做成可重入？死锁了解么？什么情况会发生死锁？如何解决死锁的问题？</span></p>
   <p data-lake-id="u4a3db73a" id="u4a3db73a"><span data-lake-id="u4e17183a" id="u4e17183a">如何创建一个线程？子线程抛异常，主线程能捕获到吗？</span><span data-lake-id="ud0a435f8" id="ud0a435f8">start</span><span data-lake-id="u02011b25" id="u02011b25">和</span><span data-lake-id="u1b31c2a4" id="u1b31c2a4">run</span><span data-lake-id="ud0f97bba" id="ud0f97bba">区别是啥</span></p>
   <p data-lake-id="u82c70e63" id="u82c70e63"><span data-lake-id="u1bd173fa" id="u1bd173fa">主子线程的执行顺序是怎么样的？守护线程知道吗？</span></p>
   <p data-lake-id="u7ab11f12" id="u7ab11f12"><span data-lake-id="u2701e14c" id="u2701e14c">实现功能：统计</span><span data-lake-id="u9a949327" id="u9a949327">Spring</span><span data-lake-id="u018129b6" id="u018129b6">的某个</span><span data-lake-id="u67b1ff55" id="u67b1ff55">bean</span><span data-lake-id="ub3cc1b32" id="ub3cc1b32">中的某个方法被调用多少次？如果不让改动</span><span data-lake-id="u4a4da557" id="u4a4da557">bean</span><span data-lake-id="u29ccfcfd" id="u29ccfcfd">的类呢？</span></p>
   <p data-lake-id="u9749ca9f" id="u9749ca9f"><span data-lake-id="u55988f69" id="u55988f69">用过</span><span data-lake-id="ue662f285" id="ue662f285">spring</span><span data-lake-id="udae740b1" id="udae740b1">中的哪些注解？</span><span data-lake-id="u87750de5" id="u87750de5">@Service</span><span data-lake-id="uf6526790" id="uf6526790">、</span><span data-lake-id="u8f7da3e4" id="u8f7da3e4">@Compotent</span><span data-lake-id="u49b70190" id="u49b70190">区别是啥？</span></p>
   <p data-lake-id="u9a5c55da" id="u9a5c55da"><span data-lake-id="ub8f7f690" id="ub8f7f690">同一个接口有多个实现，如何指定该注入哪个实现？</span></p>
   <p data-lake-id="ub445f316" id="ub445f316"><span data-lake-id="u428eb935" id="u428eb935">SpringEvent</span><span data-lake-id="u2c88e326" id="u2c88e326">用过吗？</span><span data-lake-id="ub869afef" id="ub869afef">IOC</span><span data-lake-id="ude420696" id="ude420696">控制反转是啥意思？把什么反转了，谁反转给谁了？</span></p>
   <p data-lake-id="u635c7fc3" id="u635c7fc3"><span data-lake-id="uff5d832f" id="uff5d832f">Spring</span><span data-lake-id="ua2f5bcc6" id="ua2f5bcc6">有几种注入方式？平常用哪个？字段注入</span><span data-lake-id="ud98cbdd9" id="ud98cbdd9">IDEA</span><span data-lake-id="u7cfe9336" id="u7cfe9336">有没有给警告？</span></p>
   <p data-lake-id="ud4749c0b" id="ud4749c0b"><span data-lake-id="u0e765287" id="u0e765287">Spring</span><span data-lake-id="u9c034807" id="u9c034807">和</span><span data-lake-id="ua069db9d" id="ua069db9d">SpringBoot</span><span data-lake-id="ua19e0080" id="ua19e0080">最大的区别是啥？简化开发，内置</span><span data-lake-id="u9427e3a9" id="u9427e3a9">web</span><span data-lake-id="u2e91aacb" id="u2e91aacb">服务器？内置了哪些</span><span data-lake-id="u64e5cfc0" id="u64e5cfc0">web</span><span data-lake-id="u430c9f3d" id="u430c9f3d">服务器？</span></p>
   <p data-lake-id="u2bc1557c" id="u2bc1557c"><span data-lake-id="ubb48f1df" id="ubb48f1df">讲讲</span><span data-lake-id="ud95afd1f" id="ud95afd1f">Spring</span><span data-lake-id="u683f93f3" id="u683f93f3">的循环依赖问题？二级缓存就够了？</span></p>
   <p data-lake-id="ue7b35b72" id="ue7b35b72"><span data-lake-id="u67111cb8" id="u67111cb8">Mysql</span><span data-lake-id="udeb38863" id="udeb38863">主键一定是自增的吗？建表一定要有主键吗？隐藏</span><span data-lake-id="u29a32269" id="u29a32269">row_id</span><span data-lake-id="ub9122e6c" id="ub9122e6c">干嘛用的？聚簇索引</span></p>
   <p data-lake-id="u4f067928" id="u4f067928"><span data-lake-id="u66f57239" id="u66f57239">如果没有创建主键，一定会创建隐藏主键吗？如果有这时候有唯一键一定就不会了吗？</span></p>
   <p data-lake-id="ub84647fa" id="ub84647fa"><span data-lake-id="uaa077a4e" id="uaa077a4e">主键用自增</span><span data-lake-id="uf7ead9bd" id="uf7ead9bd">ID</span><span data-lake-id="uc967184b" id="uc967184b">和</span><span data-lake-id="uc16d639b" id="uc16d639b">UUID</span><span data-lake-id="ud339129f" id="ud339129f">哪个好？自增</span><span data-lake-id="u7d2a4122" id="u7d2a4122">ID</span><span data-lake-id="uda27d1a4" id="uda27d1a4">有缺点吗？</span></p>
   <p data-lake-id="u13d7f0e2" id="u13d7f0e2"><span data-lake-id="u655b99fa" id="u655b99fa">分库分表字段怎么选的，雪花算法？按照</span><span data-lake-id="u616b400e" id="u616b400e">ID</span><span data-lake-id="u69b1143b" id="u69b1143b">分表？查询怎么办？</span></p>
   <p data-lake-id="ue5615d0d" id="ue5615d0d"><span data-lake-id="u683933c2" id="u683933c2">日志输出用的什么框架，</span><span data-lake-id="u2c369017" id="u2c369017">slf4j</span><span data-lake-id="ue8edf4ca" id="ue8edf4ca">只是个门面，日志怎么输出的？</span></p>
   <p data-lake-id="u8cd3f857" id="u8cd3f857"><span data-lake-id="u348585b8" id="u348585b8">Maven出现了jar冲突，该怎么解决？删一个，</span></p>
  </blockquote>
  <h1 data-lake-id="FChSX" id="FChSX"><span data-lake-id="ubd560f90" id="ubd560f90">题目解析</span></h1>
  <p data-lake-id="u26e467c5" id="u26e467c5"><br></p>
  <blockquote data-lake-id="u6899ae75" id="u6899ae75" class="lake-alert lake-alert-color4">
   <p data-lake-id="ubafa47f5" id="ubafa47f5"><strong><span data-lake-id="u86ea6ed0" id="u86ea6ed0" class="lake-fontsize-12">怎么理解面向对象？什么是多态？Java是值传递还是引用传递？值传递</span></strong></p>
  </blockquote>
  <p data-lake-id="u540cf76b" id="u540cf76b"><br></p>
  <p data-lake-id="u3c46bd48" id="u3c46bd48"><br></p>
  <p data-lake-id="u8ad5b244" id="u8ad5b244"><br></p>
  <blockquote data-lake-id="u8440a102" id="u8440a102" class="lake-alert lake-alert-color4">
   <p data-lake-id="ucf35325a" id="ucf35325a" style="text-align: left"><strong><span data-lake-id="u6b73e3fa" id="u6b73e3fa" class="lake-fontsize-12">AQS介绍一下？state是什么类型，state的修改是怎么改的？state=1表示什么？</span></strong></p>
   <p data-lake-id="uc7d82807" id="uc7d82807" style="text-align: left"><strong><span data-lake-id="ue702eab4" id="ue702eab4" class="lake-fontsize-12">AQS有哪些具体实现？</span></strong></p>
  </blockquote>
  <p data-lake-id="u3543549d" id="u3543549d"><br></p>
  <p data-lake-id="ub845b1ae" id="ub845b1ae"><br></p>
  <blockquote data-lake-id="u456e6041" id="u456e6041" class="lake-alert lake-alert-color4">
   <p data-lake-id="u65e37a6b" id="u65e37a6b" style="text-align: left"><strong><span data-lake-id="u427a4a33" id="u427a4a33" class="lake-fontsize-12">reentrantLock和synchronized区别是啥？</span></strong></p>
   <p data-lake-id="ue9e187e9" id="ue9e187e9" style="text-align: left"><strong><span data-lake-id="uafebf6c7" id="uafebf6c7" class="lake-fontsize-12">公平锁和非公平锁区别是啥？公平锁的缺点？reentrantLock是如何实现公平锁和非公平锁的？</span></strong></p>
  </blockquote>
  <p data-lake-id="ue669fe77" id="ue669fe77"><br></p>
  <p data-lake-id="udbbafc3a" id="udbbafc3a"><br></p>
  <p data-lake-id="udfa14c0c" id="udfa14c0c"><br></p>
  <blockquote data-lake-id="u1bee215e" id="u1bee215e" class="lake-alert lake-alert-color4">
   <p data-lake-id="u21f14462" id="u21f14462" style="text-align: left"><strong><span data-lake-id="u5e7a510c" id="u5e7a510c" class="lake-fontsize-12">你觉得用synchronized和reentrant哪个好？synchronized锁的是什么？锁对象和锁类有区别吗？</span></strong></p>
  </blockquote>
  <p data-lake-id="u69cc7f74" id="u69cc7f74"><br></p>
  <p data-lake-id="ue4f5053a" id="ue4f5053a"><br></p>
  <blockquote data-lake-id="u2dd26953" id="u2dd26953" class="lake-alert lake-alert-color4">
   <p data-lake-id="u1bb685a9" id="u1bb685a9" style="text-align: left"><strong><span data-lake-id="u27eef8ac" id="u27eef8ac" class="lake-fontsize-12">同一个类中有两个synchronized方法，能被两个线程同时执行吗？同一个线程可以吗？重入怎么判断？为啥要做成可重入？死锁了解么？什么情况会发生死锁？如何解决死锁的问题？</span></strong></p>
  </blockquote>
  <p data-lake-id="u66ad6d44" id="u66ad6d44"><br></p>
  <p data-lake-id="u0fe9d38c" id="u0fe9d38c"><br></p>
  <p data-lake-id="u77a9f5d9" id="u77a9f5d9"><br></p>
  <blockquote data-lake-id="uce2d7a2d" id="uce2d7a2d" class="lake-alert lake-alert-color4">
   <p data-lake-id="u1c4353dd" id="u1c4353dd" style="text-align: left"><strong><span data-lake-id="u2040f972" id="u2040f972" class="lake-fontsize-12">如何创建一个线程？子线程抛异常，主线程能捕获到吗？start和run区别是啥</span></strong></p>
   <p data-lake-id="ucae16a8c" id="ucae16a8c" style="text-align: left"><strong><span data-lake-id="ufbecdac0" id="ufbecdac0" class="lake-fontsize-12">主子线程的执行顺序是怎么样的？守护线程知道吗？</span></strong></p>
  </blockquote>
  <p data-lake-id="ue4a52341" id="ue4a52341"><br></p>
  <p data-lake-id="u74c91ad0" id="u74c91ad0"><br></p>
  <p data-lake-id="ub2b26579" id="ub2b26579"><br></p>
  <p data-lake-id="u80074791" id="u80074791"><br></p>
  <p data-lake-id="u29d020a8" id="u29d020a8"><a href="https://www.yuque.com/hollis666/vhr2ge/dlg6vw" data-lake-id="u9e6ddebe" id="u9e6ddebe"><span data-lake-id="u5379f5fa" id="u5379f5fa">https://www.yuque.com/hollis666/vhr2ge/dlg6vw</span></a></p>
  <p data-lake-id="uf8442ecd" id="uf8442ecd"><br></p>
  <p data-lake-id="uaf2779dc" id="uaf2779dc"><br></p>
  <blockquote data-lake-id="u0a4c2eaa" id="u0a4c2eaa" class="lake-alert lake-alert-color4">
   <p data-lake-id="u5854c32e" id="u5854c32e" style="text-align: left"><strong><span data-lake-id="uf79b6a7e" id="uf79b6a7e" class="lake-fontsize-12">实现功能：统计</span></strong><strong><span data-lake-id="ud033a3b0" id="ud033a3b0" class="lake-fontsize-12">Spring</span></strong><strong><span data-lake-id="u8d3481c8" id="u8d3481c8" class="lake-fontsize-12">的某个</span></strong><strong><span data-lake-id="u73383186" id="u73383186" class="lake-fontsize-12">bean</span></strong><strong><span data-lake-id="ub91f3dca" id="ub91f3dca" class="lake-fontsize-12">中的某个方法被调用多少次？如果不让改动</span></strong><strong><span data-lake-id="u87cccb3a" id="u87cccb3a" class="lake-fontsize-12">bean</span></strong><strong><span data-lake-id="u2c9f11a3" id="u2c9f11a3" class="lake-fontsize-12">的类呢？</span></strong></p>
   <p data-lake-id="uf6a48cc5" id="uf6a48cc5" style="text-align: left"><strong><span data-lake-id="u6e6c70f9" id="u6e6c70f9" class="lake-fontsize-12">用过</span></strong><strong><span data-lake-id="uf5b4c2fb" id="uf5b4c2fb" class="lake-fontsize-12">spring</span></strong><strong><span data-lake-id="u26820b4c" id="u26820b4c" class="lake-fontsize-12">中的哪些注解？</span></strong><strong><span data-lake-id="uabb8c278" id="uabb8c278" class="lake-fontsize-12">@Service</span></strong><strong><span data-lake-id="u4c1a19d3" id="u4c1a19d3" class="lake-fontsize-12">、</span></strong><strong><span data-lake-id="u2a5b3e54" id="u2a5b3e54" class="lake-fontsize-12">@Compotent</span></strong><strong><span data-lake-id="u94d31f3b" id="u94d31f3b" class="lake-fontsize-12">区别是啥？</span></strong></p>
   <p data-lake-id="ua0dc6763" id="ua0dc6763" style="text-align: left"><strong><span data-lake-id="u31242490" id="u31242490" class="lake-fontsize-12">同一个接口有多个实现，如何指定该注入哪个实现？</span></strong></p>
  </blockquote>
  <p data-lake-id="u65b21c6d" id="u65b21c6d"><br></p>
  <p data-lake-id="uf0f8af3a" id="uf0f8af3a"><br></p>
  <p data-lake-id="u3934f39a" id="u3934f39a"><br></p>
  <p data-lake-id="u7d6ef13c" id="u7d6ef13c"><span data-lake-id="u0d47643c" id="u0d47643c">@Qualifier注解</span></p>
  <p data-lake-id="uaa29dca8" id="uaa29dca8"><br></p>
  <blockquote data-lake-id="u29cb3f18" id="u29cb3f18" class="lake-alert lake-alert-color4">
   <p data-lake-id="u842d4e09" id="u842d4e09" style="text-align: left"><strong><span data-lake-id="u21195905" id="u21195905" class="lake-fontsize-12">SpringEvent用过吗？IOC控制反转是啥意思？把什么反转了，谁反转给谁了？</span></strong></p>
   <p data-lake-id="ucfa458a9" id="ucfa458a9" style="text-align: left"><strong><span data-lake-id="u18e6ef92" id="u18e6ef92" class="lake-fontsize-12">Spring有几种注入方式？平常用哪个？字段注入IDEA有没有给警告？</span></strong></p>
  </blockquote>
  <p data-lake-id="u030ad88c" id="u030ad88c"><br></p>
  <p data-lake-id="u64722bc0" id="u64722bc0"><br></p>
  <p data-lake-id="u33d51a81" id="u33d51a81"><br></p>
  <blockquote data-lake-id="ue1a183a3" id="ue1a183a3" class="lake-alert lake-alert-color4">
   <p data-lake-id="u3ada7cb7" id="u3ada7cb7"><strong><span data-lake-id="u9854cb4b" id="u9854cb4b" class="lake-fontsize-12">Spring和SpringBoot最大的区别是啥？简化开发，内置web服务器？内置了哪些web服务器？</span></strong></p>
  </blockquote>
  <p data-lake-id="u3311764e" id="u3311764e"><br></p>
  <p data-lake-id="u010ae317" id="u010ae317"><br></p>
  <blockquote data-lake-id="u47f5479c" id="u47f5479c" class="lake-alert lake-alert-color4">
   <p data-lake-id="u53f0b9ea" id="u53f0b9ea"><strong><span data-lake-id="uf0d7226f" id="uf0d7226f" class="lake-fontsize-12">讲讲Spring的循环依赖问题？二级缓存就够了？</span></strong></p>
  </blockquote>
  <p data-lake-id="ud1eb6453" id="ud1eb6453"><br></p>
  <p data-lake-id="ub274c3d8" id="ub274c3d8"><br></p>
  <p data-lake-id="ud00807db" id="ud00807db"><br></p>
  <blockquote data-lake-id="u1fcc5036" id="u1fcc5036" class="lake-alert lake-alert-color4">
   <p data-lake-id="u93ab14c5" id="u93ab14c5"><strong><span data-lake-id="ucee4f994" id="ucee4f994" class="lake-fontsize-12">Mysql主键一定是自增的吗？建表一定要有主键吗？隐藏row_id干嘛用的？聚簇索引</span></strong></p>
   <p data-lake-id="ua1c05d9f" id="ua1c05d9f"><strong><span data-lake-id="u2a1c0576" id="u2a1c0576" class="lake-fontsize-12">如果没有创建主键，一定会创建隐藏主键吗？如果有这时候有唯一键一定就不会了吗？</span></strong></p>
  </blockquote>
  <p data-lake-id="uf7429d3a" id="uf7429d3a"><br></p>
  <p data-lake-id="u8940bcf4" id="u8940bcf4"><br></p>
  <blockquote data-lake-id="ude85f7c0" id="ude85f7c0" class="lake-alert lake-alert-color4">
   <p data-lake-id="ucb55477e" id="ucb55477e"><strong><span data-lake-id="u7c8c92d5" id="u7c8c92d5" class="lake-fontsize-12">主键用自增ID和UUID哪个好？自增ID有缺点吗？</span></strong></p>
  </blockquote>
  <p data-lake-id="u5e1c8c81" id="u5e1c8c81"><br></p>
  <p data-lake-id="ud0cb51d9" id="ud0cb51d9"><br></p>
  <blockquote data-lake-id="ud8565f3b" id="ud8565f3b" class="lake-alert lake-alert-color4">
   <p data-lake-id="ufc466831" id="ufc466831" style="text-align: left"><strong><span data-lake-id="uc1e86dae" id="uc1e86dae" class="lake-fontsize-12">分库分表字段怎么选的，雪花算法？按照ID分表？查询怎么办？</span></strong></p>
  </blockquote>
  <p data-lake-id="u04aef6f7" id="u04aef6f7"><br></p>
  <p data-lake-id="u5f308877" id="u5f308877"><br></p>
  <blockquote data-lake-id="u8580adda" id="u8580adda" class="lake-alert lake-alert-color4">
   <p data-lake-id="u544af969" id="u544af969" style="text-align: left"><strong><span data-lake-id="u3ae57b86" id="u3ae57b86" class="lake-fontsize-12">日志输出用的什么框架，slf4j只是个门面，日志怎么输出的？</span></strong></p>
   <p data-lake-id="uc5763301" id="uc5763301" style="text-align: left"><strong><span data-lake-id="u0e78bc1d" id="u0e78bc1d" class="lake-fontsize-12">Maven出现了jar冲突，该怎么解决？删一个，</span></strong></p>
  </blockquote>
  <p data-lake-id="u9cb7e6f8" id="u9cb7e6f8"><br></p>
  <p data-lake-id="ub15c44f0" id="ub15c44f0"><br></p>
 </body>
</html>